

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSInteger, TakePhotoType)
{
    TakePhotoFromCamera,//调用摄像头
    TakePhotoFromPhotoLibrary,//调用图片库
    TakePhotoSavedPhotosAlbum//调用iOS设备中的胶卷相机的图片.
};

//完成照相后获取到图片回调
typedef void (^CompleteTakePhotoBlock) (UIImage *image,NSDictionary* fileMap);

@interface TakePhotoController : NSObject <UIImagePickerControllerDelegate, UINavigationControllerDelegate>

@property (nonatomic) TakePhotoType type;
@property (nonatomic, copy) CompleteTakePhotoBlock blockComplete;
@property (nonatomic) BOOL isEdit;//是否可以编辑
@property (nonatomic) BOOL isSaveToAlbum;//是否保存到相册

- (void)startTakePhotoFromViewControl:(UIViewController *)viewControl;

@end
